<layout name="layout" />

<script src="__CDN__/Scripts/PSI/User/UserField.js?dt={$Think.config.site.version}" type="text/javascript"></script>

<script src="__CDN__/Scripts/PSI/Customer/CustomerField.js?dt={$Think.config.site.version}" type="text/javascript"></script>


<script src="__CDN__/Scripts/PSI/Funds/PreReceivingMainForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>
<script src="__CDN__/Scripts/PSI/Funds/AddPreReceivingForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>
<script src="__CDN__/Scripts/PSI/Funds/ReturnPreReceivingForm.js?dt={$Think.config.site.version}" type="text/javascript"></script>


<script>
  Ext.onReady(function () {
    PSI.Const.PROD_NAME = "{$site.name|mb_substr=0,4,'utf-8'|mb_strtoupper='utf-8'}";

    var app = Ext.create("PSI.App", {
      userName: "{$admin.username}",
      productionName: "{$site.name|mb_substr=0,4,'utf-8'|mb_strtoupper='utf-8'}"
    });

    app.add(Ext.create("PSI.Funds.PreReceivingMainForm"));
    app.setAppHeader({
      title: "{$title}",
      iconCls: "PSI-fid2025"
    });
  });
</script>
